package com.itany.easyui.controller;

import com.itany.easyui.entity.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * Author: 史峻侥
 * Date: 2021-11-12 11:33
 * Description: <描述>
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/findUser")
    public List<User> findUser(){
        List<User> list = new ArrayList<>();
        for (int i = 0; i < 5; i++) {
            User user = new User();
            user.setId(i);
            user.setUsername(i+1+"号");
            list.add(user);
        }
        return list;
    }
}
